import worker from '@ohos.worker';
import { logHandler, logErrorHandler } from '@ohos/xlog/XLogBaseWorker';

worker.workerPort.onmessage = logHandler;
worker.workerPort.onerror = logErrorHandler;